3.1277 \(\int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx\)
Optimal. Leaf size=235 \[ -\frac {\sqrt {2} (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {(8 A-4 B+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{4 \sqrt {a} d}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}} \]
[Out]
1/4*(8*A-4*B+7*C)*arcsinh(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))*cos(d*x+c)^(1/2)*sec(d*x+c)^(1/2)/d/a^(1/
2)-(A-B+C)*arctanh(1/2*sin(d*x+c)*a^(1/2)*sec(d*x+c)^(1/2)*2^(1/2)/(a+a*sec(d*x+c))^(1/2))*2^(1/2)*cos(d*x+c)^
(1/2)*sec(d*x+c)^(1/2)/d/a^(1/2)+1/2*C*sin(d*x+c)/d/cos(d*x+c)^(5/2)/(a+a*sec(d*x+c))^(1/2)+1/4*(4*B-C)*sin(d*
x+c)/d/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2)
________________________________________________________________________________________
Rubi [A] time = 0.74, antiderivative size = 235, normalized size of antiderivative = 1.00,
number of steps used = 8, number of rules used = 8, integrand size = 45, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.178, Rules used =
{4265, 4088, 4021, 4023, 3808, 206, 3801, 215} \[ -\frac {\sqrt {2} (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \tanh ^{-1}\left (\frac {\sqrt {a} \sin (c+d x) \sqrt {\sec (c+d x)}}{\sqrt {2} \sqrt {a \sec (c+d x)+a}}\right )}{\sqrt {a} d}+\frac {(8 A-4 B+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{4 \sqrt {a} d}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}}+\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a \sec (c+d x)+a}} \]
Antiderivative was successfully verified.
[In]
Int[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Cos[c + d*x]^(3/2)*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
((8*A - 4*B + 7*C)*ArcSinh[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*
x]])/(4*Sqrt[a]*d) - (Sqrt[2]*(A - B + C)*ArcTanh[(Sqrt[a]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(Sqrt[2]*Sqrt[a +
a*Sec[c + d*x]])]*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]])/(Sqrt[a]*d) + (C*Sin[c + d*x])/(2*d*Cos[c + d*x]^(5/2
)*Sqrt[a + a*Sec[c + d*x]]) + ((4*B - C)*Sin[c + d*x])/(4*d*Cos[c + d*x]^(3/2)*Sqrt[a + a*Sec[c + d*x]])
Rule 206
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
/; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])
Rule 215
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSinh[(Rt[b, 2]*x)/Sqrt[a]]/Rt[b, 2], x] /; FreeQ[{a, b},
x] && GtQ[a, 0] && PosQ[b]
Rule 3801
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*a*Sq
rt[(a*d)/b])/(b*f), Subst[Int[1/Sqrt[1 + x^2/a], x], x, (b*Cot[e + f*x])/Sqrt[a + b*Csc[e + f*x]]], x] /; Free
Q[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0] && GtQ[(a*d)/b, 0]
Rule 3808
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(d_.)]/Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[(-2*b*d)
/(a*f), Subst[Int[1/(2*b - d*x^2), x], x, (b*Cot[e + f*x])/(Sqrt[a + b*Csc[e + f*x]]*Sqrt[d*Csc[e + f*x]])], x
] /; FreeQ[{a, b, d, e, f}, x] && EqQ[a^2 - b^2, 0]
Rule 4021
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> -Simp[(B*d*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^(n - 1))/(f*(m + n
)), x] + Dist[d/(b*(m + n)), Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^(n - 1)*Simp[b*B*(n - 1) + (A*b*(m +
n) + a*B*m)*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A*b - a*B, 0] && EqQ[a^2 - b
^2, 0] && GtQ[n, 1]
Rule 4023
Int[(csc[(e_.) + (f_.)*(x_)]*(d_.))^(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*
(B_.) + (A_)), x_Symbol] :> Dist[(A*b - a*B)/b, Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n, x], x] + Dist[B
/b, Int[(a + b*Csc[e + f*x])^(m + 1)*(d*Csc[e + f*x])^n, x], x] /; FreeQ[{a, b, d, e, f, A, B, m}, x] && NeQ[A
*b - a*B, 0] && EqQ[a^2 - b^2, 0]
Rule 4088
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(d_.))^
(n_)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> -Simp[(C*Cot[e + f*x]*(a + b*Csc[e + f*x])^m*(d
*Csc[e + f*x])^n)/(f*(m + n + 1)), x] + Dist[1/(b*(m + n + 1)), Int[(a + b*Csc[e + f*x])^m*(d*Csc[e + f*x])^n*
Simp[A*b*(m + n + 1) + b*C*n + (a*C*m + b*B*(m + n + 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, d, e, f, A,
B, C, m, n}, x] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(-1)] && !LtQ[n, -2^(-1)] && NeQ[m + n + 1, 0]
Rule 4265
Int[(cos[(a_.) + (b_.)*(x_)]*(c_.))^(m_.)*(u_), x_Symbol] :> Dist[(c*Cos[a + b*x])^m*(c*Sec[a + b*x])^m, Int[A
ctivateTrig[u]/(c*Sec[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSecantIntegrandQ[
u, x]
Rubi steps
\begin {align*} \int \frac {A+B \sec (c+d x)+C \sec ^2(c+d x)}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}} \, dx &=\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx\\ &=\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sec ^{\frac {3}{2}}(c+d x) \left (\frac {1}{2} a (4 A+3 C)+\frac {1}{2} a (4 B-C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{2 a}\\ &=\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (\sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)} \left (\frac {1}{4} a^2 (4 B-C)+\frac {1}{4} a^2 (8 A-4 B+7 C) \sec (c+d x)\right )}{\sqrt {a+a \sec (c+d x)}} \, dx}{2 a^2}\\ &=\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}-\left ((A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \frac {\sqrt {\sec (c+d x)}}{\sqrt {a+a \sec (c+d x)}} \, dx+\frac {\left ((8 A-4 B+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \int \sqrt {\sec (c+d x)} \sqrt {a+a \sec (c+d x)} \, dx}{8 a}\\ &=\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {\left (2 (A-B+C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,-\frac {a \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}-\frac {\left ((8 A-4 B+7 C) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^2}{a}}} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{4 a d}\\ &=\frac {(8 A-4 B+7 C) \sinh ^{-1}\left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{4 \sqrt {a} d}-\frac {\sqrt {2} (A-B+C) \tanh ^{-1}\left (\frac {\sqrt {a} \sqrt {\sec (c+d x)} \sin (c+d x)}{\sqrt {2} \sqrt {a+a \sec (c+d x)}}\right ) \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)}}{\sqrt {a} d}+\frac {C \sin (c+d x)}{2 d \cos ^{\frac {5}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}+\frac {(4 B-C) \sin (c+d x)}{4 d \cos ^{\frac {3}{2}}(c+d x) \sqrt {a+a \sec (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 1.10, size = 127, normalized size = 0.54 \[ -\frac {\cos \left (\frac {1}{2} (c+d x)\right ) \left (8 (A-B+C) \tanh ^{-1}\left (\sin \left (\frac {1}{2} (c+d x)\right )\right )-\sqrt {2} (8 A-4 B+7 C) \tanh ^{-1}\left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \sin \left (\frac {1}{2} (c+d x)\right ) \sec (c+d x) (-4 B-2 C \sec (c+d x)+C)\right )}{4 d \sqrt {\cos (c+d x)} \sqrt {a (\sec (c+d x)+1)}} \]
Antiderivative was successfully verified.
[In]
Integrate[(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2)/(Cos[c + d*x]^(3/2)*Sqrt[a + a*Sec[c + d*x]]),x]
[Out]
-1/4*(Cos[(c + d*x)/2]*(8*(A - B + C)*ArcTanh[Sin[(c + d*x)/2]] - Sqrt[2]*(8*A - 4*B + 7*C)*ArcTanh[Sqrt[2]*Si
n[(c + d*x)/2]] + 2*Sec[c + d*x]*(-4*B + C - 2*C*Sec[c + d*x])*Sin[(c + d*x)/2]))/(d*Sqrt[Cos[c + d*x]]*Sqrt[a
*(1 + Sec[c + d*x])])
________________________________________________________________________________________
fricas [A] time = 0.82, size = 636, normalized size = 2.71 \[ \left [\frac {4 \, {\left ({\left (4 \, B - C\right )} \cos \left (d x + c\right ) + 2 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left ({\left (8 \, A - 4 \, B + 7 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (8 \, A - 4 \, B + 7 \, C\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 4 \, \sqrt {a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} {\left (\cos \left (d x + c\right ) - 2\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - 7 \, a \cos \left (d x + c\right )^{2} + 8 \, a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2}}\right ) + \frac {8 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right )^{3} + {\left (A - B + C\right )} a \cos \left (d x + c\right )^{2}\right )} \log \left (-\frac {\cos \left (d x + c\right )^{2} + \frac {2 \, \sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {a}} - 2 \, \cos \left (d x + c\right ) - 3}{\cos \left (d x + c\right )^{2} + 2 \, \cos \left (d x + c\right ) + 1}\right )}{\sqrt {a}}}{16 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2}\right )}}, \frac {8 \, \sqrt {2} {\left ({\left (A - B + C\right )} a \cos \left (d x + c\right )^{3} + {\left (A - B + C\right )} a \cos \left (d x + c\right )^{2}\right )} \sqrt {-\frac {1}{a}} \arctan \left (\frac {\sqrt {2} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {-\frac {1}{a}} \sqrt {\cos \left (d x + c\right )}}{\sin \left (d x + c\right )}\right ) + 2 \, {\left ({\left (4 \, B - C\right )} \cos \left (d x + c\right ) + 2 \, C\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) + {\left ({\left (8 \, A - 4 \, B + 7 \, C\right )} \cos \left (d x + c\right )^{3} + {\left (8 \, A - 4 \, B + 7 \, C\right )} \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \arctan \left (\frac {2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{a \cos \left (d x + c\right )^{2} - a \cos \left (d x + c\right ) - 2 \, a}\right )}{8 \, {\left (a d \cos \left (d x + c\right )^{3} + a d \cos \left (d x + c\right )^{2}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="fricas")
[Out]
[1/16*(4*((4*B - C)*cos(d*x + c) + 2*C)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c
) + ((8*A - 4*B + 7*C)*cos(d*x + c)^3 + (8*A - 4*B + 7*C)*cos(d*x + c)^2)*sqrt(a)*log((a*cos(d*x + c)^3 - 4*sq
rt(a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*(cos(d*x + c) - 2)*sqrt(cos(d*x + c))*sin(d*x + c) - 7*a*cos(d*x
+ c)^2 + 8*a)/(cos(d*x + c)^3 + cos(d*x + c)^2)) + 8*sqrt(2)*((A - B + C)*a*cos(d*x + c)^3 + (A - B + C)*a*co
s(d*x + c)^2)*log(-(cos(d*x + c)^2 + 2*sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(
d*x + c)/sqrt(a) - 2*cos(d*x + c) - 3)/(cos(d*x + c)^2 + 2*cos(d*x + c) + 1))/sqrt(a))/(a*d*cos(d*x + c)^3 + a
*d*cos(d*x + c)^2), 1/8*(8*sqrt(2)*((A - B + C)*a*cos(d*x + c)^3 + (A - B + C)*a*cos(d*x + c)^2)*sqrt(-1/a)*ar
ctan(sqrt(2)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(-1/a)*sqrt(cos(d*x + c))/sin(d*x + c)) + 2*((4*B - C
)*cos(d*x + c) + 2*C)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c) + ((8*A - 4*B +
7*C)*cos(d*x + c)^3 + (8*A - 4*B + 7*C)*cos(d*x + c)^2)*sqrt(-a)*arctan(2*sqrt(-a)*sqrt((a*cos(d*x + c) + a)/c
os(d*x + c))*sqrt(cos(d*x + c))*sin(d*x + c)/(a*cos(d*x + c)^2 - a*cos(d*x + c) - 2*a)))/(a*d*cos(d*x + c)^3 +
a*d*cos(d*x + c)^2)]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A}{\sqrt {a \sec \left (d x + c\right ) + a} \cos \left (d x + c\right )^{\frac {3}{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="giac")
[Out]
integrate((C*sec(d*x + c)^2 + B*sec(d*x + c) + A)/(sqrt(a*sec(d*x + c) + a)*cos(d*x + c)^(3/2)), x)
________________________________________________________________________________________
maple [B] time = 2.20, size = 545, normalized size = 2.32 \[ -\frac {\left (-1+\cos \left (d x +c \right )\right ) \sqrt {\frac {a \left (1+\cos \left (d x +c \right )\right )}{\cos \left (d x +c \right )}}\, \left (8 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}-8 A \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}-4 B \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}+4 B \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right ) \left (\cos ^{2}\left (d x +c \right )\right ) \sqrt {2}+7 C \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1+\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-7 C \sqrt {2}\, \left (\cos ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {\sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \left (\cos \left (d x +c \right )+1-\sin \left (d x +c \right )\right ) \sqrt {2}}{4}\right )-16 A \left (\cos ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )+8 B \sin \left (d x +c \right ) \cos \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}+16 B \left (\cos ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right )-2 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right ) \cos \left (d x +c \right )-16 C \arctan \left (\frac {\sin \left (d x +c \right ) \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}}{2}\right ) \left (\cos ^{2}\left (d x +c \right )\right )+4 C \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )\right )}{8 d a \sqrt {-\frac {2}{1+\cos \left (d x +c \right )}}\, \sin \left (d x +c \right )^{2} \cos \left (d x +c \right )^{\frac {3}{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2),x)
[Out]
-1/8/d*(-1+cos(d*x+c))*(a*(1+cos(d*x+c))/cos(d*x+c))^(1/2)*(8*A*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+
c)+1+sin(d*x+c))*2^(1/2))*cos(d*x+c)^2*2^(1/2)-8*A*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)+1-sin(d*x+
c))*2^(1/2))*cos(d*x+c)^2*2^(1/2)-4*B*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)+1+sin(d*x+c))*2^(1/2))*
cos(d*x+c)^2*2^(1/2)+4*B*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)+1-sin(d*x+c))*2^(1/2))*cos(d*x+c)^2*
2^(1/2)+7*C*2^(1/2)*cos(d*x+c)^2*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)+1+sin(d*x+c))*2^(1/2))-7*C*2
^(1/2)*cos(d*x+c)^2*arctan(1/4*(-2/(1+cos(d*x+c)))^(1/2)*(cos(d*x+c)+1-sin(d*x+c))*2^(1/2))-16*A*cos(d*x+c)^2*
arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2))+8*B*sin(d*x+c)*cos(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2)+16*B*cos(
d*x+c)^2*arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2))-2*C*(-2/(1+cos(d*x+c)))^(1/2)*sin(d*x+c)*cos(d*x+c)-
16*C*arctan(1/2*sin(d*x+c)*(-2/(1+cos(d*x+c)))^(1/2))*cos(d*x+c)^2+4*C*(-2/(1+cos(d*x+c)))^(1/2)*sin(d*x+c))/a
/(-2/(1+cos(d*x+c)))^(1/2)/sin(d*x+c)^2/cos(d*x+c)^(3/2)
________________________________________________________________________________________
maxima [B] time = 1.01, size = 3334, normalized size = 14.19 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)^2)/cos(d*x+c)^(3/2)/(a+a*sec(d*x+c))^(1/2),x, algorithm="maxima")
[Out]
-1/16*(8*(sqrt(2)*log(cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + sin(1/2*arctan2(sin(d*x + c), cos(d*x +
c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 1) - sqrt(2)*log(cos(1/2*arctan2(sin(d*x + c), cos(
d*x + c)))^2 + sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 - 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))
+ 1) - log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^
2 + 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(d*x +
c))) + 2) + log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d*x +
c)))^2 + 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) - 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c), cos(
d*x + c))) + 2) - log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c), cos(d
*x + c)))^2 - 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) + 2*sqrt(2)*sin(1/2*arctan2(sin(d*x + c),
cos(d*x + c))) + 2) + log(2*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c)))^2 + 2*sin(1/2*arctan2(sin(d*x + c),
cos(d*x + c)))^2 - 2*sqrt(2)*cos(1/2*arctan2(sin(d*x + c), cos(d*x + c))) - 2*sqrt(2)*sin(1/2*arctan2(sin(d*x
+ c), cos(d*x + c))) + 2))*A/sqrt(a) + 4*(4*sqrt(2)*cos(3/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))*sin(2
*d*x + 2*c) - 4*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))*sin(2*d*x + 2*c) + (cos(2*d*x + 2
*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))
)^2 + 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), c
os(2*d*x + 2*c))) + 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - (cos(2*d*x + 2*c)^2
+ sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 +
2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d
*x + 2*c))) - 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) + (cos(2*d*x + 2*c)^2 + sin(
2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(
1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 - 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2
*c))) + 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - (cos(2*d*x + 2*c)^2 + sin(2*d*x
+ 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(1/4*ar
ctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 - 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))
- 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - 2*(sqrt(2)*cos(2*d*x + 2*c)^2 + sqrt(2
)*sin(2*d*x + 2*c)^2 + 2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*log(cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x +
2*c)))^2 + sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2
*d*x + 2*c))) + 1) + 2*(sqrt(2)*cos(2*d*x + 2*c)^2 + sqrt(2)*sin(2*d*x + 2*c)^2 + 2*sqrt(2)*cos(2*d*x + 2*c) +
sqrt(2))*log(cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2
*d*x + 2*c)))^2 - 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 1) - 4*(sqrt(2)*cos(2*d*x + 2*c) +
sqrt(2))*sin(3/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 4*(sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*sin(1/4
*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*B/((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c
) + 1)*sqrt(a)) - (4*(sqrt(2)*sin(4*d*x + 4*c) + 2*sqrt(2)*sin(2*d*x + 2*c))*cos(7/4*arctan2(sin(2*d*x + 2*c),
cos(2*d*x + 2*c))) - 20*(sqrt(2)*sin(4*d*x + 4*c) + 2*sqrt(2)*sin(2*d*x + 2*c))*cos(5/4*arctan2(sin(2*d*x + 2
*c), cos(2*d*x + 2*c))) + 20*(sqrt(2)*sin(4*d*x + 4*c) + 2*sqrt(2)*sin(2*d*x + 2*c))*cos(3/4*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c))) - 4*(sqrt(2)*sin(4*d*x + 4*c) + 2*sqrt(2)*sin(2*d*x + 2*c))*cos(1/4*arctan2(sin(2*
d*x + 2*c), cos(2*d*x + 2*c))) + 7*(2*(2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + cos(4*d*x + 4*c)^2 + 4*cos(2
*d*x + 2*c)^2 + sin(4*d*x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 4*sin(2*d*x + 2*c)^2 + 4*cos(2*d*x
+ 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(1/4*arctan2(sin(2*d*x + 2*c),
cos(2*d*x + 2*c)))^2 + 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2*sqrt(2)*sin(1/4*arc
tan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - 7*(2*(2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + cos(4*d*x +
4*c)^2 + 4*cos(2*d*x + 2*c)^2 + sin(4*d*x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 4*sin(2*d*x + 2*c)^
2 + 4*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(1/4*arctan2(s
in(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) - 2*sqr
t(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) + 7*(2*(2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c
) + cos(4*d*x + 4*c)^2 + 4*cos(2*d*x + 2*c)^2 + sin(4*d*x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 4*s
in(2*d*x + 2*c)^2 + 4*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*s
in(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 - 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x
+ 2*c))) + 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - 7*(2*(2*cos(2*d*x + 2*c) + 1)
*cos(4*d*x + 4*c) + cos(4*d*x + 4*c)^2 + 4*cos(2*d*x + 2*c)^2 + sin(4*d*x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*
d*x + 2*c) + 4*sin(2*d*x + 2*c)^2 + 4*cos(2*d*x + 2*c) + 1)*log(2*cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x
+ 2*c)))^2 + 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 - 2*sqrt(2)*cos(1/4*arctan2(sin(2*d*x +
2*c), cos(2*d*x + 2*c))) - 2*sqrt(2)*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 2) - 8*(sqrt(2)*co
s(4*d*x + 4*c)^2 + 4*sqrt(2)*cos(2*d*x + 2*c)^2 + sqrt(2)*sin(4*d*x + 4*c)^2 + 4*sqrt(2)*sin(4*d*x + 4*c)*sin(
2*d*x + 2*c) + 4*sqrt(2)*sin(2*d*x + 2*c)^2 + 2*(2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*cos(4*d*x + 4*c) + 4*sq
rt(2)*cos(2*d*x + 2*c) + sqrt(2))*log(cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + sin(1/4*arctan2
(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 1) + 8*(sqr
t(2)*cos(4*d*x + 4*c)^2 + 4*sqrt(2)*cos(2*d*x + 2*c)^2 + sqrt(2)*sin(4*d*x + 4*c)^2 + 4*sqrt(2)*sin(4*d*x + 4*
c)*sin(2*d*x + 2*c) + 4*sqrt(2)*sin(2*d*x + 2*c)^2 + 2*(2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*cos(4*d*x + 4*c)
+ 4*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*log(cos(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 + sin(1/4*
arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))^2 - 2*sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 1) -
4*(sqrt(2)*cos(4*d*x + 4*c) + 2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*sin(7/4*arctan2(sin(2*d*x + 2*c), cos(2*d
*x + 2*c))) + 20*(sqrt(2)*cos(4*d*x + 4*c) + 2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*sin(5/4*arctan2(sin(2*d*x +
2*c), cos(2*d*x + 2*c))) - 20*(sqrt(2)*cos(4*d*x + 4*c) + 2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*sin(3/4*arcta
n2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + 4*(sqrt(2)*cos(4*d*x + 4*c) + 2*sqrt(2)*cos(2*d*x + 2*c) + sqrt(2))*
sin(1/4*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*C/((2*(2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + cos(4*
d*x + 4*c)^2 + 4*cos(2*d*x + 2*c)^2 + sin(4*d*x + 4*c)^2 + 4*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + 4*sin(2*d*x +
2*c)^2 + 4*cos(2*d*x + 2*c) + 1)*sqrt(a)))/d
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \[ \int \frac {A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}}{{\cos \left (c+d\,x\right )}^{3/2}\,\sqrt {a+\frac {a}{\cos \left (c+d\,x\right )}}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(3/2)*(a + a/cos(c + d*x))^(1/2)),x)
[Out]
int((A + B/cos(c + d*x) + C/cos(c + d*x)^2)/(cos(c + d*x)^(3/2)*(a + a/cos(c + d*x))^(1/2)), x)
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}}{\sqrt {a \left (\sec {\left (c + d x \right )} + 1\right )} \cos ^{\frac {3}{2}}{\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((A+B*sec(d*x+c)+C*sec(d*x+c)**2)/cos(d*x+c)**(3/2)/(a+a*sec(d*x+c))**(1/2),x)
[Out]
Integral((A + B*sec(c + d*x) + C*sec(c + d*x)**2)/(sqrt(a*(sec(c + d*x) + 1))*cos(c + d*x)**(3/2)), x)
________________________________________________________________________________________